<tem>

<!-- 用户编辑模板 -->
<div class="template xd-template" id="user_edit_template">
	<div class="panel-body no-tb-padder">
		<form class="bs-example form-horizontal xs-form" id="userForm">
			<input type="hidden" name="" value="" data-id="id">
			<div class="form-group">
				<label class="col-lg-3 control-label required">姓名：</label>
			    <div class="col-lg-8">
			        <input type="text" class="form-control input-sm"  data-id="name" maxlength="50" reg="notempty,byteLength:100" message="{notempty:'姓名不能为空，且首尾不能有空格',byteLength:format('姓名长度不能超过100个字符')}">
			    </div>
			</div>

			<div class="form-group">
			    <label class="col-lg-3 control-label required">用户名：</label>
			    <div class="col-lg-8">
			        <input type="text" class="form-control input-sm" maxlength="50" data-id="username"  reg="notempty,byteLength:100" message="{notempty:'用户名不能为空，且首尾不能有空格',byteLength:format('用户名长度不能超过100个字符')}">
			    </div>		    
			</div>
			<div data-type="pwd">
				<div class="form-group">
					<label class="col-lg-3 control-label required pass">登录密码：</label>
				    <div class="col-lg-8">
				        <input type="password" class="form-control input-sm" data-id="password"  reg="notempty,minLength:6,maxLength:20,password" message="{notempty:'登录密码不能为空，且首尾不能有空格',minLength:format('请输入6-20位密码'),maxLength:format('请输入6-20位密码')}" id="newPwd" onpaste="return false;">
				    </div>
				    <label class="col-lg-3 control-label"></label>
				</div>
				<div class="form-group" data-type="pwd">
					<label class="col-lg-3 control-label required pass">确认密码：</label>
				    <div class="col-lg-8">
				        <input type="password" class="form-control input-sm" data-id="password" 	reg="notempty,equalsTo:newPwd,password" message="{notempty:'确认密码不能为空，且首尾不能有空格',equalsTo:format('两次密码不一致')}" id="surePass">
				    </div>
				</div>
			</div>

			<div class="form-group">
				<label class="col-lg-3 control-label required">角色：</label>
				<div class="col-lg-8">
					<select class="form-control input-sm" data-type="select" id="roleId" data-id="roleId">
						
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-lg-3 control-label required">邮件地址：</label>
			    <div class="col-lg-8">
			        <input type="text" class="form-control input-sm" data-id="email" reg="notempty,email" message="{notempty:'邮箱不能为空，且首尾不能有空格'}" maxlength="50">
			    </div>
			</div>

			<div class="form-group">
				<label class="col-lg-3 control-label">用户状态：</label>
				<div class="col-lg-8" style="padding-top: 7px;">
					<label class="i-checks ml3">
						<input type="radio" value="1" data-id="state" name="state" checked>
						<i></i>
					  启用
					</label>
					<label class="i-checks ml20">
						<input type="radio" value="0" name="state">
						<i></i>
					  停用
					</label>
				</div>			
		</form>
	</div>
</div>

</tem>